﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/admin/MasterPage.master"  CodeFile="list.aspx.cs" Inherits="admin_solution_solution" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="System.Data" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<h1 class="admin-position">当前位置 -> 解决方案管理</h1>
<table cellpadding="0" cellspacing="0" class="admin-tab-table">
    <tr>
        <th>
            <ul style="margin-left:30px;">
                <li class="btn_selected"><a href="list.aspx" class="selected">全部方案</a></li><li class="btn"><a href="add.aspx">发布方案</a></li></ul>
        </th>
        <th style="text-align:right;">
            <ul class="news_search">
                <li>标题</li><li><input type="text" name="search" /></li><li><input type="submit" value="搜索" /></li></ul>
        </th>
    </tr>
</table>
<form id="Form1" method="post" runat="server">
<table cellpadding="0" cellspacing="0" class="admin-list-table">
    <thead>
        <tr>
            <th style=" width:40px; height: 25px;"></th>
            <th style="height: 25px">标题</th>
            <th style="height:25px; width:100px;">缩略图</th>
            <th style="height: 25px">标签</th>
            <th style="height: 25px">日期</th>
            <th style="height: 25px">提交ip</th>
            <th style="height: 25px">置顶</th>
            <th style="height: 25px">管理</th>
        </tr>
    </thead>
    <tbody>
        <asp:Repeater ID="repeater1" runat="server">
        <ItemTemplate>
        <tr>
            <td style=" width:40px; text-align:center;"><asp:CheckBox ID="cdDelete" ToolTip='<%#Eval("id") %>'  runat="server"/><asp:HiddenField Value='<%#Eval("id") %>' ID="newsid" runat="server" /></td> </td>
            <td><%# ((DataRowView)Container.DataItem)["subject"] %></td>
            <td style="padding:3px;"><img src="<%# ((DataRowView)Container.DataItem)["img"] %>" alt="" height="40" /></td>
            <td><%# ((DataRowView)Container.DataItem)["tags"] %></td>
            <td><%# ((DateTime)((DataRowView)Container.DataItem)["eventdate"]).ToString("yyyy-MM-dd")%></td>
            <td><%# ((DataRowView)Container.DataItem)["postip"] %></td>
            <td><%# ((DataRowView)Container.DataItem)["settop"] %></td>
            <td><a href="update.aspx?id=<%# ((DataRowView)Container.DataItem)["id"] %>">详情</a></td>
        </tr>
        </ItemTemplate>
        </asp:Repeater>
    </tbody>
    
 </table>
 <table width="99%" class="admin-pageinfo">
    <tr>
        <td><select name="mode"><option value="1">批量删除</option></select><input type="button" value="提交" id="Button1" onserverclick="Button1_ServerClick" runat="server" /></td>
        <td class="page" align="right"><webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_PageChanged"></webdiyer:AspNetPager></td>
   </tr>
 </table>
</form>
</asp:Content>